package com.athui.utils.explorer.strategy;

/**
 * @description: TODO
 * @autor: zhangzhonghui
 * @create: 2024-08-05 19:06
 * @Version: 1.0
 */
public class SqlServerExplorerStrategy extends ExplorerStrategy{
    @Override
    public String sampling(Integer limit){
        return String.format("SELECT top %d %s FROM %s ",limit, super.getFields(),super.getFullTable());
    }

    @Override
    public String fullScan(Integer limit){
        return String.format("SELECT top(%d) %s FROM %s ORDER BY NEWID()",limit,super.getFields(),super.getFullTable());
    }
}
